package com.imon.web.codesphere.resources;

import java.util.concurrent.Executor;

import javax.annotation.Resource;

import com.imon.web.codesphere.CodeJsonParser;
import com.imon.web.codesphere.DiffProcessor;
import com.imon.web.codesphere.MongoDatabase;
import com.imon.web.codesphere.RepositoryGateway;

public class ResourceBase {

	@Resource
	private MongoDatabase database;

	@Resource
	private CodeJsonParser jsonParser;

	@Resource
	private DiffProcessor diffProcessor;

	@Resource
	private RepositoryGateway repositoryGateway;

	@Resource
	private Executor executor;

	protected MongoDatabase getDatabase() {
		return database;
	}

	protected CodeJsonParser getJsonParser() {
		return jsonParser;
	}

	public void setJsonParser(final CodeJsonParser aJsonParser) {
		jsonParser = aJsonParser;
	}

	protected DiffProcessor getDiffProcessor() {
		return diffProcessor;
	}

	protected RepositoryGateway getRepositoryGateway() {
		return repositoryGateway;
	}

	protected Executor getExecutor() {
		return executor;
	}
}
